<div class="tag">
    <?php foreach($data["tag"] as $tag) : ?>
        <?php if($data["tid"] == $tag["id"]) : ?>
            <a style="color:#151A91" href="<?php echo $this->link("tag",array('id'=>$tag["id"])) ?> "><?php echo $tag["name"] ?></a>
        <?php else : ?>
            <a href="<?php echo $this->link("tag",array('id'=>$tag["id"])) ?> "><?php echo $tag["name"] ?></a>
        <?php endif ?>
    <?php endforeach ?>
</div>
<div class="main">
    <div class="articlelist">
    <?php
    if(! empty($article)) {
        include $this->tpl("article/list");
    } else {
        echo '暂无';
    }
    ?>
    <div class="page"><?php $this->page($page) ?></div>
    </div>
</div>
